<template>
  <span class="toolbar-button">
    <ElCheckbox v-model="checked" false-label="one" true-label="all" :disabled="disabled" @change="onClick">
      {{ label }}
    </ElCheckbox>
    <span class="separate-line"></span>
  </span>
</template>

<script>
  export default {
    name: 'ToolbarCheck',
    props: {
      label: String,
      disabled: Boolean
    },
    data() {
      return {
        checked: 'one'
      }
    },
    methods: {
      onClick(event) {
        this.$emit('click', event)
      }
    }
  }
</script>
